package Printer;

import java.awt.Color;
import java.awt.Font;
import java.util.ArrayList;

public class PrintableContent {

	private String headline;
	private ArrayList<Line> lines = new ArrayList<Line>();
	private boolean headlineForEveryPage;
	private int defaultLineHeight;
	private Font headlineFont;
	private Color headlineColor;

	public PrintableContent(String headline,boolean headlineForEveryPage, Font headfont) {
		this.headline = headline;
		this.headlineFont = headfont;
	}

	public Font getHeadlineFont() {
		return headlineFont;
	}

	public void addLine(String text, Font font, int tab, Color color, Color bgcolor) {
		this.lines.add(new Line(text, tab,font, color, bgcolor));
	}

	public boolean getHeadlineForEveryPage()
	{
		return this.headlineForEveryPage;
	}
	
	public int getSize()
	{
		return this.lines.size();
	}
	
	public String getHeadline() {
		return this.headline;
	}

	public Line getLine(int i) {
		return this.lines.get(i);
	}
	
	public void addText(String text, Font font, int tab, Color color, Color bgcolor)
	{
		//Splitt chars for each line...
		this.lines.add(new Line(text, tab,font,color,bgcolor));
	}
}